package cool.tianyou.blue.bird.rest;

import cool.tianyou.blue.bird.common.model.entity.RestApiResult;
import cool.tianyou.blue.bird.common.util.RestResultUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liutianyou
 * @date 2022/3/1 12:07 上午
 */
@RestController
@RequiredArgsConstructor
public class LogController {

  @PostMapping("/log")
  public ResponseEntity<RestApiResult<Object>> recordAndroidLog(@RequestBody String log) {
    System.out.println("----------------------------------------");
    System.out.println(log);
    System.out.println("----------------------------------------");
    return RestResultUtil.ok(1);
  }

}
